package com.wave.spring.web.anno;

import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.lang.annotation.*;

/**
 * Created by weibo.xwb on 2017/8/22.
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@ResponseBody
@RequestMapping(method = RequestMethod.GET)
public @interface MyGet {


    @AliasFor(value = "path",annotation = RequestMapping.class)
    String path() default "";
}
